/* 认证页面通用样式 */
.auth-wrapper {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    background-color: #f5f5f5;
    padding: 20px;
}

.auth-card {
    background: white;
    border-radius: 10px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    width: 100%;
    max-width: 400px;
    padding: 30px;
}

.auth-header {
    text-align: center;
    margin-bottom: 30px;
}

.auth-header h2 {
    color: #2c3e50;
    margin-bottom: 10px;
}

.auth-header p {
    color: #7f8c8d;
    font-size: 14px;
}

.auth-form .form-group {
    margin-bottom: 20px;
}

.auth-form label {
    display: block;
    margin-bottom: 8px;
    color: #2c3e50;
    font-weight: 500;
}

.auth-form input {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 14px;
    transition: border-color 0.3s;
}

.auth-form input:focus {
    border-color: #3498db;
    outline: none;
}

.auth-btn {
    position: fixed;
    top: 20px;
    right: 20px;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    background-color: #fff;
    color: #4caf50;
    border-radius: 30px;
    font-size: 0.9rem;
    font-weight: 500;
    text-decoration: none;
    transition: all 0.3s ease;
    box-shadow: 0 2px 10px rgba(67, 97, 238, 0.2);
}

.auth-btn:hover {
    background-color: #2980b9;
}

.auth-footer {
    text-align: center;
    margin-top: 20px;
    font-size: 14px;
    color: #7f8c8d;
}

.auth-footer a {
    color: #3498db;
    text-decoration: none;
}

.auth-footer a:hover {
    text-decoration: underline;
}

.alert-message {
    padding: 10px 15px;
    border-radius: 6px;
    margin-top: 20px;
    font-size: 14px;
}

.alert-message.error {
    background-color: #fdecea;
    color: #f44336;
    border: 1px solid #f44336;
}

.divider {
    display: flex;
    align-items: center;
    margin: 20px 0;
    color: #7f8c8d;
    font-size: 14px;
}

.divider::before,
.divider::after {
    content: "";
    flex: 1;
    border-bottom: 1px solid #ddd;
}

.divider::before {
    margin-right: 10px;
}

.divider::after {
    margin-left: 10px;
}

/* 添加到现有的auth.css文件中 */
.auth-btn-register {
    width: 100%;
    padding: 12px;
    background-color: #3498db;
    color: white;
    border: none;
    border-radius: 6px;
    font-size: 16px;
    font-weight: 500;
    cursor: pointer;
    transition: background-color 0.3s;
    margin-top: 20px; /* 增加上边距使其与上方元素有间隔 */
    display: block; /* 确保按钮独占一行 */
}

.auth-btn-register:hover {
    background-color: #2980b9;
}

/* 如果您希望按钮固定在表单底部 */
.auth-form {
    display: flex;
    flex-direction: column;
    height: 100%;
}

.auth-btn-register {
    margin-top: auto; /* 这将把按钮推到容器底部 */
}

/* 验证码样式 */
.captcha-container {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 8px;
}

#captcha {
    flex: 1;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
}

#captcha-image {
    height: 40px;
    border: 1px solid #ddd;
    border-radius: 4px;
    cursor: pointer;
    transition: opacity 0.3s;
}

#captcha-image:hover {
    opacity: 0.8;
}

.captcha-hint {
    display: block;
    margin-top: 5px;
    color: #666;
    font-size: 0.8em;
    text-align: right;
}


.btn-verify {
    background-color: #f0f0f0;
    border: 1px solid #ddd;
    border-radius: 4px;
    padding: 8px 12px;
    margin-left: 10px;
    cursor: pointer;
    font-size: 14px;
    transition: all 0.3s;
}

.btn-verify:hover {
    background-color: #e0e0e0;
}

.btn-verify:disabled {
    background-color: #f5f5f5;
    color: #999;
    cursor: not-allowed;
}